package com.joven.shelltest;

import cn.shuibo.annotation.EnableSecurity;
import com.github.jeffreyning.mybatisplus.conf.EnableMPP;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author joven
 */
@EnableMPP
@EnableAsync
@EnableScheduling
@EnableCaching
@ComponentScan(basePackages = {"com.joven"})
@SpringBootApplication
@EnableSecurity
public class ShellTestApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(ShellTestApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("--------SpringBoot-CommandLineRunner-Test--------");
    }
}
